﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Drawing;

public partial class Details : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {   
        String ID=Request.Params["ID"];
        int i;
        if (ID == null || ID == "" || int.TryParse(ID ,out i)==false)
            SqlDataSource1.SelectCommand ="";// "SELECT * FROM [NEWS] WHERE ID = -1";
        else
            SqlDataSource1.SelectCommand = "SELECT * FROM [NEWS] WHERE ID = " + ID;
    }

    protected void DataList1_DataBinding(object sender, EventArgs e)
    {
        
    }
}